layui.use(['layer', 'laydate', 'form', 'table', 'element', 'slider'], function () {
    var layer = layui.layer,
        laydate = layui.laydate,
        form = layui.form,
        table = layui.table,
        element = layui.element,
        $ = layui.$;
    form.render();

    var username = $("#username").text();
    var password = $("#password").text();

    $.ajax({
        url : "http://localhost:9999/login",
        type: 'GET',
        dataType: "json",
        data : {"username":username, "password":password},
        success: function (data) {

        },
        error: function (data) {
            console.log(data);
        }
    });
});